package tech.waterism.service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 水文模型在线服务 - Spring Boot 启动类
 * 
 * <p>提供水文模型计算的REST API服务，包括：
 * <ul>
 *   <li>DHF - 大伙房模型</li>
 *   <li>LAG_3 - 三水源滞后演算模型</li>
 *   <li>SMS_3 - 三水源蓄满产流模型</li>
 * </ul>
 * 
 * <p>功能特性：
 * <ul>
 *   <li>同步计算：直接返回计算结果</li>
 *   <li>异步计算：支持高并发，任务ID轮询查询</li>
 *   <li>任务管理：自动清理过期任务（1小时）</li>
 * </ul>
 * 
 * <p>访问地址：
 * <ul>
 *   <li>API文档: http://localhost:8080/swagger-ui.html</li>
 *   <li>OpenAPI JSON: http://localhost:8080/v3/api-docs</li>
 * </ul>
 * 
 * @author 高宇
 * @since 1.0.0
 */
@EnableScheduling
@SpringBootApplication
public class HydroModelServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(HydroModelServiceApplication.class, args);
        System.out.println("\n" +
                "========================================\n" +
                "   水文模型在线服务启动成功！\n" +
                "========================================\n" +
                "   Swagger UI: http://localhost:8080/swagger-ui.html\n" +
                "   API Docs:    http://localhost:8080/v3/api-docs\n" +
                "========================================\n");
    }
}

